package org.example.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


/**
* @Author: 鸢一折纸
* @Email: 3498881048@qq.com
* @Date: 2025/09/15 9:56
* @Description: ${Description}
**/
    
    
/**
    * 出差申请表
    */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "business_trip")
public class BusinessTrip {
    @TableId(value = "trip_id", type = IdType.INPUT)
    private Integer tripId;

    @TableField(value = "user_id")
    private Integer userId;

    @TableField(value = "application_date")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date applicationDate;

    @TableField(value = "start_date")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date startDate;

    @TableField(value = "end_date")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date endDate;

    @TableField(value = "destination")
    private String destination;

    @TableField(value = "reason")
    private String reason;

    @TableField(value = "`status`")
    private Object status;

    @TableField(value = "created_at")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createdAt;

    @TableField(value = "updated_at")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updatedAt;
}